package com.jimikongjian.models;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;

/**
 * Created by fuxiuyang on 17/2/19.
 */
@Scope("prototype")
@Repository("following")
public class Following {

    /**
     * 初始化id号，将id号置为-1
     */
    public static final int INIT_ID = -1;

    /**
     * 自身的id号
     */
    private int id;

    /**
     * 关注者的id号
     */
    private int userId = Following.INIT_ID;

    /**
     * 关注者的昵称
     */
    private String userNick;

    /**
     * 被关注者的id号
     */
    private int followingId = Following.INIT_ID;

    /**
     * 被关注者的昵称
     */
    private String followingNick;

    /**
     * 关注的时间
     */
    private Timestamp createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public int getFollowingId() {
        return followingId;
    }

    public void setFollowingId(int followingId) {
        this.followingId = followingId;
    }

    public String getFollowingNick() {
        return followingNick;
    }

    public void setFollowingNick(String followingNick) {
        this.followingNick = followingNick;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}
